/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cl.alanis.dao;

import cl.alanis.dto.StockDto;
import cl.alanis.dto.VentaDto;
import cl.alanis.exception.StockNoExisteException;
import java.util.List;

/**
 *
 * @author Pía
 */
public interface StockDao {

    public StockDto obtenerStock(StockDto stock) throws StockNoExisteException,Exception;
    public boolean actualizarStock(StockDto stock) throws Exception;
    public List obtenerStocks(VentaDto venta) throws Exception;

    public boolean insertarStock(StockDto stock) throws Exception;

    public void commit();

    public void rollback();
    
}
